<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>{% block title %}物理服务器详细信息{% endblock %}</title>
    {% load staticfiles %}
    <!-- Bootstrap Core CSS -->
    <link href="{% static "bower_components/bootstrap/dist/css/bootstrap.min.css" %}" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="{% static "bower_components/metisMenu/dist/metisMenu.min.css" %}" rel="stylesheet">

    <!-- DataTables CSS -->
    <link href="{% static "bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.css" %}" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="{% static "dist/css/sb-admin-2.css" %}" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="{% static "bower_components/font-awesome/css/font-awesome.min.css" %}" rel="stylesheet" type="text/css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
    <div id="wrapper">
        <div class="dataTable_wrapper">
            <pre style="background-color: white;">
                <table class="table table-striped table-bordered table-hover" id="dataTables-example" style="margin-top:0px;margin-left:0px;margin-right:0px;margin-bottom:0px;">
                    <thead>
                        <tr>
                            <th>资产编号</th>
                            <th>设备类型</th>
                            <th>服务器IP</th>
                            <th>远控卡IP</th>
                            <th>数据中心</th>
                            <th>机房编号</th>
                            <th>机柜编号</th>
                            <th>系统类型</th>
                            <th>CPU型号、数目</th>
                            <th>磁盘大小、数目</th>
                            <th>内存大小、数目</th>
                            <th>磁盘阵列</th>
                            <th>网卡类型、数目</th>
                            <th>电源数目</th>
                            <th>服务编号</th>
                            <th>购买时间</th>
                            <th>过期时间</th>
                            <th>备注</th>
                            <th>管理</th>
                        </tr>
                    </thead>
                    <tbody>
                    {% for i in a %}
                        <tr class="gradeA">
                            <td>{{ i.asset_num }}</td>
                            <td>{{ i.type }}</td>
                            <td><a href="{{ i.assetget_url.get_host_url }}" target="_blank">{{ i.server_ip }}</a></td>
                            <td>{{ i.remote_ip }}</td>
                            <td>{{ i.data_center }}</td>
                            <td>{{ i.room_num }}</td>
                            <td>{{ i.rack_num }}</td>
                            <td>{{ i.system_type }}</td>
                            <td>{{ i.cputype_num }}</td>
                            <td>{{ i.disksize_num }}</td>
                            <td>{{ i.memsize_num }}</td>
                            <td>{{ i.disk_raid }}</td>
                            <td>{{ i.card_type_num }}</td>
                            <td>{{ i.power_num }}</td>
                            <td>{{ i.service_num }}</td>
                            <td>{{ i.buy_time }}</td>
                            <td>{{ i.expiration_time }}</td>
                            <td class="center">{{ i.note }}</td>
                            <td><a href="/assetmanage/asset_update_arg_keep/?asset_num={{ i.asset_num }}"><button class="btn btn-warning btn-xs" type="button">更改</button></a> <a href="/assetmanage/asset_del/?asset_num={{ i.asset_num }}"><button class="btn btn-danger btn-xs" type="button">删除</button></a></td>
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
            </pre>
        </div>
    </div>
    <!-- jQuery -->
    <script src="{% static "bower_components/jquery/dist/jquery.min.js" %}"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="{% static "bower_components/bootstrap/dist/js/bootstrap.min.js" %}"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="{% static "bower_components/metisMenu/dist/metisMenu.min.js" %}"></script>

    <!-- DataTables JavaScript -->
    <script src="{% static "bower_components/datatables/media/js/jquery.dataTables.min.js" %}"></script>
    <script src="{% static "bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.min.js" %}"></script>

    <!-- Custom Theme JavaScript -->
    <script src="{% static "dist/js/sb-admin-2.js" %}"></script>

    <!-- Page-Level Demo Scripts - Tables - Use for reference -->
    <script>
    $(document).ready(function() {
        $('#dataTables-example').DataTable({
                responsive: true
        });
    });
    </script>
    <!--<script>
    $(document).ready(function() {
        $('#dataTables-example').DataTable({
                responsive: true
        });
    });
    // tooltip demo
    $('.tooltip-demo').tooltip({
        selector: "[data-toggle=tooltip]",
        container: "body"
    })
    // popover demo
    $("[data-toggle=popover]")
        .popover()
    </script>-->
    {% block jquery %}

    {% endblock %}

</body>
</html>